//============================================================================
// Name        : test-glfw.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <string>
#include <iostream>
#include <fstream>

#define GLFW_INCLUDE_GL3
#include <GL/glfw.h>

#include "startup-init.h"

using namespace std;

int main() {

	cout<<"Started"<<endl;

	int initResult = initialize();

	if (initResult != 0) {
		string errorString = getInitializingErrorByCode(initResult);
		cout<<errorString<<endl;
		cleanup();
		return 1;
	}


	int escPressed = GLFW_RELEASE;

	while (escPressed == GLFW_RELEASE) {
		escPressed = glfwGetKey(GLFW_KEY_ESC);
		glfwSwapBuffers();
	}


	cleanup();

	cout<<"Finished"<<endl;

	return 0;
}
